Position

sealed interface Position : LayoutWidget.Position

Deprecated

Moved to LayoutWidget in 0.6.0

A layout position to apply to a popup element

Typical implementation requires at least two positions, a relative position and an alignment Positions are broken down into 3 sub-categories:

  • LayoutWidget.PositionRelativePos - How to generally position an element relative to its parent

  • LayoutWidget.PositionRelativeAlignment - How to align an element in relation to the dimension features of its parent (top, bottom, left, and right edges etc.)

  • LayoutWidget.PositionGlobalAlignment - How to align an element in relation to the global dimensions of the Popup as a whole

Author

fzzyhmstrs

Since

0.2.0

Inheritors

Types

Link copied to clipboard
object Impl

Collection of all implemented Position. Preferred practice is to use this collection rather than referring directly to the underlying Enums

Functions

Link copied to clipboard
abstract override fun position(parent: LayoutWidget.LayoutElement, el: Widget, globalSet: PopupWidget.Builder.PosSet, prevX: Pos, prevY: Pos): Pair<Pos, Pos>